from PyQt4.QtGui import *
from PyQt4.QtCore import QThread,QProcess
import commands
class MyThread(QThread):
    def __init__(self,parent = None):
        super(MyThread,self).__init__(parent)
        
        
    def run(self):
        self.process = QProcess(self)
        self.process.start("top -d >>/root/a")
        